import request from '@/utils/request'

export default {
  //标准库
  standardList(data) {
    return request({
      url: '/standard_lib/list',
      method: 'post',
      data
    })
  },
  addStandard(data) {
    return request({
      url: '/standard_lib',
      method: 'post',
      data
    })
  },
  editStandard(data) {
    return request({
      url: '/standard_lib',
      method: 'put',
      data
    })
  },
  delStandard(data) {
    return request({
      url: `/standard_lib/${data}`,
      method: 'delete',
      data
    })
  },
 //法律法规库
 lawsList(data) {
  return request({
    url: '/law_regulation/list',
    method: 'post',
    data
  })
},
addLaws(data) {
  return request({
    url: '/law_regulation',
    method: 'post',
    data
  })
},
editLaws(data) {
  return request({
    url: '/law_regulation',
    method: 'put',
    data
  })
},
delLaws(data) {
  return request({
    url: `/law_regulation/${data}`,
    method: 'delete',
    data
  })
},



}
